import { createEnum } from '@/tools/enum'

// 添加人员步骤
const stepItems = [
	{
		title: '基础信息',
	},
	{
		title: '健康信息',
	},
	{
		title: '体检评估',
	},
	{
		title: '确认入住',
	},
];
export const STEPS = stepItems.map(item => ({ key: item.title, title: item.title }));


// 支付方式
export const PAYMENT_METHOD_ENUM = createEnum([
	{
		label: '城镇职工医保',
		value: 0
	},
	{
		label: '城镇居民医保',
		value: 1
	},
	{
		label: '新型农村合作医疗',
		value: 2
	},
	{
		label: '商业保险',
		value: 3
	},
	{
		label: '贫困救助',
		value: 4
	},
	{
		label: '全自费',
		value: 5
	},
]);

// 入住方式
export const CHECK_IN_METHOD_ENUM = createEnum([
	{
		label: '全托',
		value: 0
	},
	{
		label: '日托',
		value: 1
	},
]);

// 照护等级
export const LEVEL_CARE_ENUM = createEnum([
	{
		label: '自理',
		value: 0
	},
	{
		label: '介助',
		value: 1
	},
	{
		label: '介护三级',
		value: 2
	},
	{
		label: '介护二级',
		value: 3
	},
	{
		label: '介护一级',
		value: 4
	}
]);

// 认知评估
export const COGNITIVE_ASSESSMENT_ENUM = createEnum([
	{
		label: '认知完好',
		value: 0
	},
	{
		label: '轻度失智',
		value: 1
	},
	{
		label: '中度失智',
		value: 2
	},
	{
		label: '重度失智',
		value: 3
	}
]);

// 能力评估
export const CAPABILITY_ASSESSMENT_ENUM = createEnum([
	{
		label: '能力完好',
		value: 0
	},
	{
		label: '轻度失能',
		value: 1
	},
	{
		label: '中度失能',
		value: 2
	},
	{
		label: '重度失能',
		value: 3
	}
]);

// 视力、听力、皮肤情况
export const SCENE_ENUM = createEnum([
	{
		label: '较好',
		value: 0
	},
	{
		label: '一般',
		value: 1
	},
	{
		label: '较差',
		value: 2
	}
]);

// 性别
export const SEX_ENUM = createEnum([
	{
		label: '男',
		value: 1
	},
	{
		label: '女',
		value: 0
	}
]);

// 婚姻状况
export const MARITAL_STATUS_ENUM = createEnum([
	{
		label: '已婚',
		value: 1
	},
	{
		label: '未婚',
		value: 0
	},
	{
		label: '丧偶',
		value: 2
	}
]);

// 入住方式
export const CHECK_IN_ENUM = createEnum([
	{
		label: '已入住',
		value: '1'
	},
	{
		label: '未入住',
		value: '2'
	}
]);

// 状态
export const CHECK_IN_STATUS_ENUM = createEnum([
	{
		label: '已入住',
		value: '1'
	},
	{
		label: '未入住',
		value: '2'
	}
]);

// 状态
export const WHETHER_ENUM = createEnum([
	{
		label: '是',
		value: 1
	},
	{
		label: '否',
		value: 0
	}
]);

// PLACEHOLDER
export const INPUT_PLACEHOLDER = '请输入';
export const SELECT_PLACEHOLDER = '请选择';

// style
export const labelAlign = 'left';
export const labelCol = { style: { width: '110px' } };

export const defaultBase = {
	sex: 1,
	maritalStatus: 0,
	name: '',
	card: '',
	checkDate: '',
	// addr: '',
	birth: '',
	emergencyName: '',
	emergencyPhone: '',
	// age: 0,
	avatar: '',
	// interest: '',
};

export const defaultBody = {
	// pastMedicalHistory: '',
	// surgicalHistory: '',
	// drugAllergyHistory: '',
	// allergen: '',
	// dietaryTaboos: '',
	smoke: 0,
	drink: 0,
};

export const defaultExamination = {
	// height: '',
	// weight: '',
	vision: 0,
	hearing: 0,
	skinCondition: 0,
	// blooPressure: '',
	// bloodLipids: '',
	// bloodSugar: '',
	// heartRate: '',
	capability: 0,
	cognitive: 0,
	careLevel: void 0,
	packages: []
};

export const defaultPlan = {
	checkInDate: undefined,
	room: [],
	checkInMethod: 0,
	payMethod: 0,
	// reimbursementRatio: ''
};

export const defaultPerson = {
	...defaultBase,
	...defaultBody,
	...defaultExamination,
	...defaultPlan,
};

// 日期格式
export const dateFormat = 'YYYY-MM-DD'
// export const dateFormat = 'YYYY-MM-DD HH:mm:ss'
export const timeFormat = `${dateFormat} HH:mm:ss`
